import '../../models/video_platform.dart';
import '../../models/video_search_params.dart';
import '../../models/video_search_result.dart';
import '../../models/video_info.dart';

// 搜索解析器函数类型
typedef VideoSearchParser = Future<VideoSearchResult> Function(
  VideoSearchParams params
);
// 平台解析器接口
abstract class VideoPlatformParser {
  String get platformId;
  VideoPlatform get platformInfo;
  /// 返回视频列表
  Future<VideoSearchResult> search(VideoSearchParams params);
  Future<VideoInfo> getVideoDetail(String videoId);
  Future<String?> getVideoUrl(String pageUrl);
}
